#ifndef UART_H_
#define UART_H_
/*******************************************************************************
 * File name: 		uart.h
 * Description: 	simplified UART interface- only as output for RS232
 * Project: 		_framework
 * Target: 			LPC1788
 * Compiler: 		arm-none-eabi-gcc
 * Date: 			08-11-2012
 * Author: 			Kuba
 * Based on: 		---
 ******************************************************************************/

/*==============================================================================
 Includes
==============================================================================*/
# include "typedef.h"
/*==============================================================================
 Defines
==============================================================================*/

/*==============================================================================
 Types
==============================================================================*/
enum uartBaud {
   uartBAUD50      = 50,
   uartBAUD75      = 75,
   uartBAUD110     = 110,
   uartBAUD134     = 134,
   uartBAUD150     = 150,
   uartBAUD200     = 200,
   uartBAUD300     = 300,
   uartBAUD600     = 600,
   uartBAUD1200    = 1200,
   uartBAUD1800    = 1800,
   uartBAUD2400    = 2400,
   uartBAUD4800    = 4800,
   uartBAUD9600    = 9600,
   uartBAUD19200   = 19200,
   uartBAUD38400   = 38400,
   uartBAUD57600   = 57600,
   uartBAUD64000   = 64000,
   uartBAUD115200  = 115200,
   uartBAUD125000  = 125000,
   uartBAUD230400  = 230400,
   uartBAUD460800  = 460800,
   uartBAUD576000  = 576000
};

/*==============================================================================
 Global function prototypes
==============================================================================*/
/*------------------------------------------------------------------------------
 function name:		uartnInit
 description: 		init uart 0/2
 parameters:   		baud
 returned value:	none
------------------------------------------------------------------------------*/
void uart0Init    (enum uartBaud baud);
void uart2Init    (enum uartBaud baud);

/*------------------------------------------------------------------------------
 function name:		uartnPutChar
 description:		function used by uprintf(), sends a char to the uart
 parameters:		character to send
 returned value:	none
------------------------------------------------------------------------------*/
void uart0PutChar (char character);
void uart2PutChar (char character);
/******************************************************************************
* END OF FILE
******************************************************************************/





#endif /* UART_H_ */
